#!/bin/bash
git fetch -p

authors=(`git log --since="last thursday 00:00:00" --no-merges --shortstat --all | grep "Author" | awk '{print $2}' | sort | uniq`)

for author in ${authors[@]};
do
    echo $author;
    git log --since="last thursday 00:00:00" --all --no-merges --shortstat --author=$author | grep -E "fil(e|es) changed" | awk '{files+=$1; inserted+=$4; deleted+=$6} END {print "files changed: ", files, "lines inserted: ", inserted, "lines deleted: ", deleted }'
done
